import packageAxios from '../request';
const axios = packageAxios.instance;

const apiVersion = '/api/v1/apply/';

const ApplyApi = {
    get (id) {
        return axios.get(apiVersion + id);
    },
    post (data) {
        return axios.post(apiVersion, data);
    },
    getByOrderReturnUser (data) {
        return axios.get(apiVersion + 'returnUser', data);
    },
    deleteApplyRecord (params) {
        return axios.delete(apiVersion, { params });
    }
};

export default ApplyApi;
